package com.hmall.api.client;

import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

/**
 * 交易订单服务远程调用feigncLient
 */
@FeignClient("trade-service")
public interface OrderClient {

    @ApiOperation("标记订单已支付")
    @ApiImplicitParam(name = "orderId", value = "订单id", paramType = "path")
    @PutMapping("/orders/{orderId}")//路径弄对，否则支付的时候报错
    public void markOrderPaySuccess(@PathVariable("orderId") Long orderId) ;
}
